<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>TTHIENSUHACK (^_*)</title>
<style type="text/css">

</style>
<?php echo $this->headLink()->appendStylesheet($this->baseURL.'/css/admin.css') ?>
<?php echo $this->headLink()->appendStylesheet($this->baseURL.'/css/template.css') ?>
  <?php echo $this->headScript()->appendFile($this->baseURL.'/js/jquery-1.3.2.js','text/javascript');?>
  <?php echo $this->headScript()->appendFile($this->baseURL.'/js/general.js','text/javascript');?>
  <?php echo $this->headScript()->appendFile($this->baseURL.'/misc/mce/jscripts/tiny_mce/tiny_mce.js','text/javascript');?>
</head>
<body id="page_bg">
<div id="container">


<!-- no search -->
<div id="nosearch"></div>
<!-- no search end-->


<!-- pill menu -->
<div id="pillmenu">
<ul id="mainlevel-nav">
	<li><a id="active_menu-nav" class="mainlevel-nav"
		href="<?php echo $this->baseURL;?>/index"><?php echo My_Translate::translate("HOME");?></a></li>
		<li><a class="mainlevel-nav"
		href="<?php echo $this->baseURL;?>/index/intro"><?php echo My_Translate::translate("ABOUT");?></a></li>
	<li><a class="mainlevel-nav"
		href="<?php echo $this->baseURL;?>/product/"><?php echo My_Translate::translate("PRODUCT");?></a></li>
	<li><a class="mainlevel-nav"
		href="<?php echo $this->baseURL;?>/content/"><?php echo My_Translate::translate("CONTENT");?></a></li>
	<li><a class="mainlevel-nav"
		href="<?php echo $this->baseURL;?>/question/"><?php echo My_Translate::translate("FAQ");?></a></li>
	<li><a class="mainlevel-nav"
		href="<?php echo $this->baseURL;?>/feedback/"><?php echo My_Translate::translate("CONTACT");?></a></li>
	<span style="float: right;padding-top: 10px;">
		<?php echo $this->language(); ?>
		</span>
</ul>
<!--<span class="breadcrumbs pathway">
Trang chá»§</span>-->
</div>
<!-- pill menu end-->


<!-- header -->
<div id="header">
	<div id="headerimg"></div>
	<table cellspacing="0" cellpadding="0">
		<tbody>
			<tr>
				<td>
				<h1><a href="#">ThÃ¡i Viá»‡t Long</a></h1>
				</td>
			</tr>
		</tbody>
	</table>
	<div class="boxes"></div>
</div>
<!-- header end-->



<!-- content -->
<div id="content">
<div id="content_top">
<div id="content_bottom">


<!-- left column -->
<div id="leftcolumn">


<!-- module category -->
<div class="module">
<div><div><div>
<h3><?php echo My_Translate::translate("SITE_PRODUCT_CATEGORY");?></h3>
<ul style="padding-left: 0px;" class="menu">
<?php 
$service = new ProductCategoryService();
$data = $service->buildQueryData();
$categories = $data->query()->fetchAll();
foreach($categories as $category){	
?>
	<li class="level1 item1 ">
	<a
		href="<?php echo $this->url( array('action'=>'list','controller'=>'product','module'=>'site','id'=>$category['categoryId']),
'default', true) ?>"
		class="level1 item1 "> 
		<img width="30" height="30" src="<?php echo $this->baseURL?>/images/products/<?php echo $category['imageURL'];?>" />
		<span style="font-weight: bold;"><?php echo $category['categoryName'];?></span> </a></li>
<?php }?>
</ul>
</div></div></div>

</div>
<!-- module category end-->


<!-- module ads -->
<div class="module">
<div><div><div>
<h3><?php echo My_Translate::translate("ADVERTISE");?></h3>
<object width="180" height="100" border="0" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" 
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">
<param value="always" name="AllowScriptAccess"/>
<param value="High" name="quality"/>
<param value="transparent" name="wmode"/>
<embed width="180" height="100" allowscriptaccess="always" 
wmode="transparent" type="application/x-shockwave-flash" 
pluginspage="http://www.macromedia.com/go/getflashplayer" 
src="<?php echo $this->baseURL;?>/images/Beline.swf"/>
</object>
<img src="<?php echo $this->baseURL;?>/images/logo_agb.jpg" width="180">
<img src="<?php echo $this->baseURL;?>/images/logo_vcb.png" width="180">
</div></div></div>

</div>
<!-- module ads end-->


<!-- module online-->
<div class="module">
<div>
<div>
<div>
<h3><?php echo My_Translate::translate("STATISTIC");?></h3>
<?php 
$dbAdapter = Zend_Registry::get("dpAdapter",$dbAdapter);
$result = $dbAdapter->fetchRow('SELECT * FROM info');
$visited = $result['visited'];
?>
<?php echo My_Translate::translate("TOTAL_VISITED");?>: <?php echo $visited;?>
</div>
</div>
</div>
</div>
<!-- module online end-->


</div>
<!-- left column end-->


<!-- main column -->
<div id="maincolumn">
<div id="mainCenter">
<div class="nopad">
<!--<div class="componentheading">
	</div>
	--><?php echo $this->layout()->content; ?>
</div>
</div>
</div>
<!-- main column end-->


<!-- right column -->
<div id="rightcolumn" style="float: right;">

<!-- module login-->
<!--<div class="module">
<div>
<div>
<div>
<h3>Ä�Äƒng nháº­p</h3>
<form id="form-login" name="login" method="post"
	action="">
<fieldset class="input">
<p id="form-login-username"><label for="modlgn_username">TÃªn</label><br />
<input type="text" size="18" alt="username" class="inputbox"
	name="username" id="modlgn_username" /></p>
<p id="form-login-password"><label for="modlgn_passwd">Máº­t kháº©u</label><br />
<input type="password" alt="password" size="18" class="inputbox"
	name="passwd" id="modlgn_passwd" /></p>
<p id="form-login-remember"><label for="modlgn_remember">Ghi nhá»›
</label> <input type="checkbox" alt="Remember Me" value="yes" class="inputbox"
	name="remember" id="modlgn_remember" /></p>
<input type="submit" value="Login" class="button" name="Submit" /></fieldset>
<ul>
	<li><a href="">
	QuÃªn máº­t kháº©u?</a></li>
	<li><a
		href="">
	Forgot your username?</a></li>
	<li><a
		href="">
	Táº¡o tÃ i khoáº£n</a></li>
</ul>

<input type="hidden" value="com_user" name="option" /> <input
	type="hidden" value="login" name="task" /> <input type="hidden"
	value="L3Byb2plY3RzL1JlYWxFc3RhdGUvaW5kZXgucGhwP29wdGlvbj1jb21fY29udGVudCZ2aWV3PWZyb250cGFnZSZJdGVtaWQ9MQ=="
	name="return" /> <input type="hidden" value="1"
	name="78f38a9871a339212029760fb6575a86" /></form>
</div>
</div>
</div>
</div>
--><!-- module login end-->




 <!-- module san pham scroler-->
<div class="module">
<div>
<div>
<div>
<h3><?php echo My_Translate::translate("RANDOM_PRODUCT");?></h3>

<div>
<div style="padding-left: 20px; width: 150px;"><marquee width="150"
	height="400" onmouseout="this.start()" onmouseover="this.stop()"
	truespeed="true" scrolldelay="120" scrollamount="5" direction="down"
	behavior="scroll">
	
<?php 
$service = new ProductService();
$products = $service->getRandomProducts(5);
foreach($products as $product){
?>	
<div><a href=""><img width="100" height="75"
	src="<?php echo $this->baseURL?>/images/products/<?php echo $product['imageURL'];?>" /></a>
<a
	href=""><br />
<?php echo $product['productName'];?></a> <br />
<br />
<br />
</div>
<?php }?>

</marquee></div>
</div>
</div>
</div>
</div>
</div>

<!-- module san pham end-->


</div>
<!-- right column end -->


<div class="clr"></div>

</div>
</div>
</div>
<!-- content end-->


<!-- footer-->
<div id="footer"> 
@ Copyright  thiensuhack keke<br>
<a href="" class="footer123" target="_blank">iTGVN</a>
</div>
<!-- footer end-->


</div>
</body>
</html>